
from flask import Flask
from flask_migrate import MigrateCommand, Migrate
from flask_script import Manager
# from apps.models import *
from apps import create_app
from apps.models import admin_model
from apps.models import heyue_model
from apps.models import moey_model
from apps.models import touzhu_model
from apps.models import user_model
from exts import db

app = create_app()
manager = Manager(app)

# 整合app 和 db
migrate = Migrate(app,db)

manager.add_command('db', MigrateCommand)


@app.route('/')
def man():
    return 'wangkr is a good man!'


if __name__ == '__main__':
    manager.run()
